<?php
class newsController extends CController {
    private $_news_mod;
    
    function __construct()
    {
        parent::__construct();
        $this->_news_mod = Nimo::app()->loadModel('news');
    }
    
    function on_main()
    {
        $tpl_data['title'] = '酷越互联';
        $this->display('index',$tpl_data);
    }
    
    function on_list()
    {
        $tpl_data['title'] = '新闻列表';
        $newslist = $this->_news_mod->get_list();
        $this->display('index',$tpl_data);
    }
}
?>